Running Docker

Docker Login:

Login to the container-registry.oracle.com to pull the required images using theArchival application from below command.

# docker login container-registry.oracle.com

Username

Password

Login successful.

Use your Oracle SSO username and password to log in to the Oracle Registry.

Steps to build the image and run the container:

  1. Go to the archival folder where docker file is present.

  2. Build the docker image using the following command:

    docker build --network=host -t archival:26.1.0.0 .
  3. Run the container using the below command.

    The master password will be set as system property using docker run command via "SECURE_CONFIG_AES_MASTER_PWD=myMasterPasswordForEncryption"

    Docker

    docker run -d --restart unless-stopped --network=host --privileged --mount type=bind,source=/scratch/oipa/archival/conf/,target=/usr/local/archival/conf --mount type=bind,source=/scratch/oipa/archival/logging.properties,target=/usr/local/archival/logging.properties -e SECURE_CONFIG_AES_MASTER_PWD=myMasterPasswordForEncryption --name archival archival:26.1.0.0

  4. Make sure the container started without any exception. To check the logs use → docker logs -f archival.

    Liquibase files should run without any exceptions.

Manual Login

Follow the below steps for deploying archival service manually (without docker).

  1. Go to the archvial folder.

  2. Run the below command.

Windows → java -cp "archival.jar;libs/*" com.oracle.insurance.archival.cmd.ArchivalMain

Linux → java -cp "archival.jar:libs/*" com.oracle.insurance.archival.cmd.ArchivalMain

Note: Use Post MAN or any other rest client to test the APIs.

GET Request: